<template>
	<view class="car">
		<view class="aa">
			<view class="top">
				<text class="phone">驾驶证照片</text>
				<view class="load">
					<u-upload :action="action"></u-upload>
					<u-upload :action="action1"></u-upload>
				</view>
			</view>
		</view>
		<view class="between">
			<view class="line1">
				<text>驾驶证副页档案编号</text>
				<input type="text" value="" placeholder="输入档案编号" />
			</view>
			<view class="line2">
				<text>准驾车型</text>
				<input type="text" value="" placeholder="输入准驾车型" />
			</view>
			<view class="line3">
				<text>初领驾驶证日期</text>
				<input type="text" :value="date" placeholder="请选择日期" :disabled="true" @click="show = true"/>
				<u-picker mode="time" v-model="show" :params="params" @confirm="confirm"></u-picker>
			</view>
		</view>
		<view class="bottom">
			<view class="withdrawal">
				提交
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "car",
		data() {
			return {
				action: '#',
				action1: '#',
				params: {
					year: true,
					month: true,
					day: true,
					hour: false,
					minute: false,
					second: false
				},
				show: false,
				date:''
			}
		},
		methods: {
			confirm(val) {
				console.log(val);
				this.date=val.year+'-'+val.month+'-'+val.day
			},
		}
	}
</script>

<style scoped>
	.car {
		background: rgb(238, 238, 238);
		height: 1250rpx;
	}

	.aa {
		display: flex;
	}

	.top {
		width: 95%;
		height: 400rpx;
		background-color: #FFFFFF;
		margin: 0 auto;
		margin-top: 3%;
		padding: 24rpx;
	}

	.phone {
		font-weight: 600;
		font-size: 32rpx;
	}

	.load {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		padding-top: 60rpx;
	}

	.between {
		width: 95%;
		height: 320rpx;
		background-color: #FFFFFF;
		margin: 0 auto;
		margin-top: 3%;
		padding: 24rpx;
	}

	.line1 {
		display: flex;
		flex-direction: row;
		padding-bottom: 30rpx;
		border-bottom: 1px solid #A5A5A5;
	}

	.line1 text {
		font-size: 30rpx;
		font-weight: 600;
	}

	.line1 input {
		text-align: right;
		margin-left: 5%;
	}

	.line2 {
		display: flex;
		flex-direction: row;
		padding-bottom: 30rpx;
		margin-top: 5%;
		border-bottom: 1px solid #A5A5A5;
	}

	.line2 text {
		font-size: 30rpx;
		font-weight: 600;
	}

	.line2 input {
		text-align: right;
		margin-left: 27%;
	}

	.line3 {
		display: flex;
		flex-direction: row;
		padding-bottom: 30rpx;
		margin-top: 5%;
		/* border-bottom: 1px solid #A5A5A5; */
	}

	.line3 text {
		font-size: 30rpx;
		font-weight: 600;
	}

	.line3 input {
		text-align: right;
		margin-left: 13%;
	}
	.bottom{
		margin: 0 auto;
		width: 94%;
		margin-top: 40%;
	}
	.withdrawal{
		width: 100%;
		height: 80rpx;
		border-radius: 20px;
		margin-bottom: 5%;
		text-align: center;
		padding-top: 12px;
		color: #FFFFFF;
		background-image: linear-gradient(to right, rgb(53,199,233) , rgb(30,141,255));
	}
</style>
